package com.ruoyi.constant;

/**
 * 处置状态
 */
public enum RwtzCzztEnum {

    CZZT_WEICHUZHI(0, "未处置"),
    CZZT_CUZHIZHONG(1, "处置中"),
    CZZT_YICHUZHI(2, "已处置"),
    CZZT_XIAOHAO(3, "已销号");


    private Integer code;
    private String desc;

    RwtzCzztEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
    public static String getDescByCode(Integer code) {
        for (RwtzCzztEnum value : RwtzCzztEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
